﻿
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busUserProfile
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------

        public const string UserId = "UserId";
        public const string FirstName = "FirstName";
        public const string LastName = "LastName";
        public const string UserCode = "UserCode";
        public const string CreatedBy = "CreatedBy";
        public const string CreatedDate = "CreatedDate";
        public const string ModifiedBy = "ModifiedBy";
        public const string ModifiedDate = "ModifiedDate";
        public const string IsAllowLogin = "IsAllowLogin";

        public const string ORDERBY = "OrderBy";
        public const string ORDERDIRECTION = "OrderDirection";
        public const string CURRENTPAGE = "CurrentPage";
        public const string PAGESIZE = "PageSize";
        public const string TOTALRECORDS = "TotalRecords";
        public const string CONDITION = "Condition";


        private daoUserProfile _daoProfile;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busUserProfile()
        {
            _daoProfile = new daoUserProfile();
        }
        public bool Update(UserProfile objData)
        {
            return _daoProfile.Update(objData);
        }
        public bool Insert(UserProfile objData)
        {
            return _daoProfile.Insert(objData);
        }
        public UserProfile GetByID(Guid UserId)
        {
            return _daoProfile.GetByID(UserId);
        }
        public UserProfileCollection List(UserProfile objUserProfile)
        {
            return _daoProfile.List(objUserProfile);
        }
        public bool Delete(Guid userId)
        {
            return _daoProfile.Delete(userId);
        }
    }

}